﻿<UserControl x:Class="WpfAppHost.GeneralConfigUserControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" Margin="10" VerticalAlignment="Center">
        <DockPanel MaxWidth="600" MaxHeight="400" LastChildFill="True" MinWidth="300" MinHeight="350">
            <FlowDocumentPageViewer Name="documentViewer1" DockPanel.Dock="Top" SnapsToDevicePixels="True" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
                <FlowDocumentPageViewer.Template>
                    <ControlTemplate TargetType="{x:Type FlowDocumentPageViewer}">
                        <Border Margin="{TemplateBinding Padding}"
                                BorderBrush="{TemplateBinding BorderBrush}"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                                VerticalAlignment="{TemplateBinding VerticalContentAlignment}">
                            <AdornerDecorator ClipToBounds="True">
                                <DocumentPageView PageNumber="0"
                                                  DocumentViewerBase.IsMasterPage="True"
                                                  KeyboardNavigation.TabIndex="1"
                                                  KeyboardNavigation.TabNavigation="Local"
                                                  KeyboardNavigation.IsTabStop="False"/>
                            </AdornerDecorator>
                        </Border>
                    </ControlTemplate>
                </FlowDocumentPageViewer.Template>
                <FlowDocument IsOptimalParagraphEnabled="True" IsHyphenationEnabled="True" PageWidth="Auto" PageHeight="Auto" IsColumnWidthFlexible="True" >
                    <Section FontSize="12">
                        <Paragraph>
                            <Bold>MEF Utility Runner</Bold> lets you run lots of utility application without
                            cluttering up your startup process with mulitple shortcuts, and with only one
                            icon in your notification area.
                        </Paragraph>
                    </Section>
                </FlowDocument>
            </FlowDocumentPageViewer>
        </DockPanel>
    </ScrollViewer>
</UserControl>
